package com.example.userpointmgr.service;

import com.example.userpointmgr.dao.GroupPo;
import com.example.userpointmgr.map.GroupMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GroupServiceImpl implements GroupService {

    @Autowired
    private GroupMapper groupMapper;

    @Override
    public List<GroupPo> findAllGroups() {
        List<GroupPo> groups = groupMapper.selectList(null);
        return groups;
    }
}
